# 切片 [start:stop:step] 默认步长是1，默认start 0 默认stop 是最后一个
lst = [i * 10 for i in range(0, 9 + 1)]
# [10, 20, 30, 40, 50, 60, 70, 80]
print('raw ', lst, id(lst))
lst2 = lst[1:6:1]
print('slice ', lst2, id(lst2))
# 默认切片
lst3 = lst[::]
print('default slice ', lst3, id(lst3))
# [2::4:2]
print(lst[2:8:2])
print("step 是负数，反向切")
print('lst[::-1] ', lst[::-1])
print(lst[5::-1])
